package ua.funtik.ratings.controller

import tornadofx.*
import ua.funtik.ratings.model.UserJson
import javax.json.JsonObject

class TableController : Controller(){
    val api: Rest by inject()
//    val users = api.get("users").list().toModel<UserJson>()


    val users = observableListOf<UserJson>(
        UserJson().apply {
            fio="qwe"
            email="qwe@com"
            phone=123
        },
        UserJson().apply {
            fio="asd"
            email="asd@com"
            phone=234
        },
        UserJson().apply {
            fio="zxc"
            email="zxc@com"
            phone=321
        }
)


}